/*package com.zzyl.mapper;

import org.apache.ibatis.annotations.Mapper;

*//**
* @author 恭喜发财
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2024-05-17 11:36:33
* @Entity com.zzyl.entity1.User
*//*
@Mapper
public interface UserMapper {

}*/
package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.UserDto;
import com.zzyl.entity.Role;
import com.zzyl.entity.User;
import com.zzyl.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.PatchMapping;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from sys_user where username = #{username}")
    User selectByName(String username);

    Page<User> selectPage(UserDto userDto);

    void insertUser(User user);

    void isEnable(@Param("id")Long id, @Param("dateState") String status);

    void deleteUser(List<String> list);

    void updateUser(User user);


}




